//
// Created by zhouwd on 2020/2/25.
//

#ifndef LEARNNEW_PUSH_FLOW_H
#define LEARNNEW_PUSH_FLOW_H

#include <jni.h>
#include <android/log.h>
#include "librtmp/rtmp.h"

#define LOG_TAG "RECORDING-SCREEN"
#define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)



extern "C"
JNIEXPORT jint JNICALL
Java_com_app_recordingscreen_ZRecordingScreenActivity_pushFlowInit (JNIEnv *env, jclass type, jstring url);

extern "C"
JNIEXPORT jint JNICALL
Java_com_app_recordingscreen_ZRecordingScreenActivity_pushSPSPPS (JNIEnv *env, jclass type, jbyteArray spsData, jint spsSize, jbyteArray ppsData, jint ppsSize);

extern "C"
JNIEXPORT jint JNICALL
Java_com_app_recordingscreen_ZRecordingScreenActivity_pushFlowData (JNIEnv *env, jclass type, jbyteArray data, jint size,  jboolean iskeyframe);

extern "C"
JNIEXPORT jint JNICALL
Java_com_app_recordingscreen_ZRecordingScreenActivity_pushFlowDestory (JNIEnv *env, jclass type);

#endif //LEARNNEW_PUSH_FLOW_H
